package qianting.news.auth.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qianting.news.auth.entity.NewsUser;
import qianting.news.auth.mapper.NewsUserMapper;
import qianting.news.auth.service.NewsUserService;

@Service
public class NewsUserServiceImpl implements NewsUserService {

    @Autowired
    private NewsUserMapper newsUserMapper;

    public NewsUser getUserPasswordAndId(String username){

        return newsUserMapper.getPasswordAndId(username);

    }

    @Override
    public boolean saveUser(NewsUser newsUser) {

        return newsUserMapper.saveUser(newsUser);

    }

}
